<?php
require('../home/config.php');
$record_id = getValue('id','int','POST',0);
if($record_id){
    $db = new DBQuery;
    $sql = 'SELECT new_id,new_title,new_content, new_content_summary, new_date FROM news WHERE new_id = '.$record_id;
    $news_detail = $db->loadRow($sql);
}
?>
<div class="news_ct">
<span class="news_date">Ngày cập nhật : <?php echo date('d/m/Y h:ia',$news_detail['new_date'])?></span>
<span class="news_detail"><a href="<?=generate_detail_url('news',$news_detail)?>">&nbsp;&nbsp;Chi tiết</a></span>
<br /><?php echo cut_string($news_detail['new_content_summary'],350)?>
</div>